import Vue from "vue";
import "./app.scss";
import "./libs/taro-ui/index";
import "./app.scss";
import globalMixin from "./mixins/global-mixin";
import "./libs/taro-init.js";
import Taro from "@tarojs/taro";
import store from '@/store'
import { preventForceClick } from "./libs/util";
//初始化数据对象
import basicDataSet from "@/config/basic-data-set";

Vue.mixin(globalMixin);

Vue.prototype.preventForceClick = preventForceClick;

const App = new Vue({
  async onLaunch() {
    // 数据初始化
    await basicDataSet.init();
    /* 每次进小程序 清除上传签名的存储 防止过期 */
    Taro.removeStorageSync("uploadSignature");
  },
  store,
  onShow(options) {},
  render(h) {
    // this.$slots.default 是将要会渲染的页面
    return h("block", this.$slots.default);
  }
});

export default App;
